const path = require('path');

// module.exports = {
//     entry: './index.js',
//     mode: 'none',
//     output: {
//         path: path.resolve(__dirname, 'dist'),
//         filename: 'main.bundle.js',
//     },
// };

// 研究seal
module.exports = {
    mode: 'none',
    entry: {
        app: '/src/a.js',
    },
    output: {
        filename: '[name].[chunkhash].js',
        chunkFilename: '[name].bundle.[chunkhash:8].js',
        publicPath: '/',
    },
    optimization: {
        runtimeChunk: {
            name: 'bundle',
        },
    },
};
